<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="./style.css">
    <title>获取键盘信息</title>
</head>
<body>
    <div id="insert">
        <div class="key">
            Press any Key to get the keycode
        </div>
        <!-- <div class="key">
            a
            <small>event.key</small>
        </div>
        <div class="key">
            65
            <small>event.keyCode</small>
        </div>
        <div class="key">
            KeyA
            <small>event.Code</small>
        </div> -->
    </div>
    <script src="./script.js"></script>
</body>
</html>